package com.settlement.system.converter;

import com.alibaba.excel.converters.integer.IntegerStringConverter;
import com.alibaba.excel.metadata.GlobalConfiguration;
import com.alibaba.excel.metadata.data.WriteCellData;
import com.alibaba.excel.metadata.property.ExcelContentProperty;

/**
 * @author author
 */
public class WpVpTypeConvert extends IntegerStringConverter {

    @Override
    public WriteCellData convertToExcelData(Integer value, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) {
        if(1 == value){
            return new WriteCellData("唯品JIT");
        }
        if(0 == value){
            return new WriteCellData("唯品JITX");
        }
        return new WriteCellData();
    }

}
